.class Lxlgridview/PullToRefreshLayout$1;
.super Landroid/os/Handler;
.source "PullToRefreshLayout.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lxlgridview/PullToRefreshLayout;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lxlgridview/PullToRefreshLayout;


# direct methods
.method constructor <init>(Lxlgridview/PullToRefreshLayout;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    .line 118
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 13
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const/4 v12, 0x0

    const/4 v11, 0x4

    const/4 v10, 0x2

    const/4 v9, 0x0

    .line 125
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    const-wide/high16 v1, 0x4020000000000000L    # 8.0

    const-wide/high16 v3, 0x4014000000000000L    # 5.0

    const-wide v5, 0x3ff921fb54442d18L    # 1.5707963267948966

    .line 126
    iget-object v7, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    invoke-virtual {v7}, Lxlgridview/PullToRefreshLayout;->getMeasuredHeight()I

    move-result v7

    int-to-double v7, v7

    div-double/2addr v5, v7

    iget-object v7, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v7, v7, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    iget-object v8, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v8}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v8

    invoke-static {v8}, Ljava/lang/Math;->abs(F)F

    move-result v8

    add-float/2addr v7, v8

    float-to-double v7, v7

    mul-double/2addr v5, v7

    .line 125
    invoke-static {v5, v6}, Ljava/lang/Math;->tan(D)D

    move-result-wide v5

    mul-double/2addr v3, v5

    add-double/2addr v1, v3

    double-to-float v1, v1

    iput v1, v0, Lxlgridview/PullToRefreshLayout;->MOVE_SPEED:F

    .line 127
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->isTouch:Z
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$1(Lxlgridview/PullToRefreshLayout;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 130
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-ne v0, v10, :cond_7

    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v0, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    iget-object v1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->refreshDist:F
    invoke-static {v1}, Lxlgridview/PullToRefreshLayout;->access$3(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    cmpg-float v0, v0, v1

    if-gtz v0, :cond_7

    .line 132
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget-object v1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->refreshDist:F
    invoke-static {v1}, Lxlgridview/PullToRefreshLayout;->access$3(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    iput v1, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    .line 133
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->timer:Lxlgridview/PullToRefreshLayout$MyTimer;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$4(Lxlgridview/PullToRefreshLayout;)Lxlgridview/PullToRefreshLayout$MyTimer;

    move-result-object v0

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout$MyTimer;->cancel()V

    .line 141
    :cond_0
    :goto_0
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v0, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    cmpl-float v0, v0, v9

    if-lez v0, :cond_8

    .line 142
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v1, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    iget-object v2, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v2, v2, Lxlgridview/PullToRefreshLayout;->MOVE_SPEED:F

    sub-float/2addr v1, v2

    iput v1, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    .line 145
    :cond_1
    :goto_1
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v0, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    cmpg-float v0, v0, v9

    if-gez v0, :cond_3

    .line 148
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iput v9, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    .line 149
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullView:Landroid/view/View;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$7(Lxlgridview/PullToRefreshLayout;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V

    .line 151
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-eq v0, v10, :cond_2

    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-eq v0, v11, :cond_2

    .line 152
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # invokes: Lxlgridview/PullToRefreshLayout;->changeState(I)V
    invoke-static {v0, v12}, Lxlgridview/PullToRefreshLayout;->access$8(Lxlgridview/PullToRefreshLayout;I)V

    .line 153
    :cond_2
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->timer:Lxlgridview/PullToRefreshLayout$MyTimer;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$4(Lxlgridview/PullToRefreshLayout;)Lxlgridview/PullToRefreshLayout$MyTimer;

    move-result-object v0

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout$MyTimer;->cancel()V

    .line 154
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout;->requestLayout()V

    .line 156
    :cond_3
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v0

    cmpl-float v0, v0, v9

    if-lez v0, :cond_5

    .line 159
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    invoke-static {v0, v9}, Lxlgridview/PullToRefreshLayout;->access$6(Lxlgridview/PullToRefreshLayout;F)V

    .line 160
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpView:Landroid/view/View;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$9(Lxlgridview/PullToRefreshLayout;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V

    .line 162
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-eq v0, v10, :cond_4

    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-eq v0, v11, :cond_4

    .line 163
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # invokes: Lxlgridview/PullToRefreshLayout;->changeState(I)V
    invoke-static {v0, v12}, Lxlgridview/PullToRefreshLayout;->access$8(Lxlgridview/PullToRefreshLayout;I)V

    .line 164
    :cond_4
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->timer:Lxlgridview/PullToRefreshLayout$MyTimer;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$4(Lxlgridview/PullToRefreshLayout;)Lxlgridview/PullToRefreshLayout$MyTimer;

    move-result-object v0

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout$MyTimer;->cancel()V

    .line 165
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout;->requestLayout()V

    .line 167
    :cond_5
    const-string v0, "handle"

    const-string v1, "handle"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 169
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout;->requestLayout()V

    .line 171
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v0, v0, Lxlgridview/PullToRefreshLayout;->pullDownY:F

    iget-object v1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v1}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v1

    add-float/2addr v0, v1

    cmpl-float v0, v0, v9

    if-nez v0, :cond_6

    .line 172
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->timer:Lxlgridview/PullToRefreshLayout$MyTimer;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$4(Lxlgridview/PullToRefreshLayout;)Lxlgridview/PullToRefreshLayout$MyTimer;

    move-result-object v0

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout$MyTimer;->cancel()V

    .line 173
    :cond_6
    return-void

    .line 134
    :cond_7
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->state:I
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$2(Lxlgridview/PullToRefreshLayout;)I

    move-result v0

    if-ne v0, v11, :cond_0

    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v0

    neg-float v0, v0

    iget-object v1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->loadmoreDist:F
    invoke-static {v1}, Lxlgridview/PullToRefreshLayout;->access$5(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    cmpg-float v0, v0, v1

    if-gtz v0, :cond_0

    .line 136
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget-object v1, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->loadmoreDist:F
    invoke-static {v1}, Lxlgridview/PullToRefreshLayout;->access$5(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    neg-float v1, v1

    invoke-static {v0, v1}, Lxlgridview/PullToRefreshLayout;->access$6(Lxlgridview/PullToRefreshLayout;F)V

    .line 137
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->timer:Lxlgridview/PullToRefreshLayout$MyTimer;
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$4(Lxlgridview/PullToRefreshLayout;)Lxlgridview/PullToRefreshLayout$MyTimer;

    move-result-object v0

    invoke-virtual {v0}, Lxlgridview/PullToRefreshLayout$MyTimer;->cancel()V

    goto/16 :goto_0

    .line 143
    :cond_8
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v0

    cmpg-float v0, v0, v9

    if-gez v0, :cond_1

    .line 144
    iget-object v0, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    # getter for: Lxlgridview/PullToRefreshLayout;->pullUpY:F
    invoke-static {v0}, Lxlgridview/PullToRefreshLayout;->access$0(Lxlgridview/PullToRefreshLayout;)F

    move-result v1

    iget-object v2, p0, Lxlgridview/PullToRefreshLayout$1;->this$0:Lxlgridview/PullToRefreshLayout;

    iget v2, v2, Lxlgridview/PullToRefreshLayout;->MOVE_SPEED:F

    add-float/2addr v1, v2

    invoke-static {v0, v1}, Lxlgridview/PullToRefreshLayout;->access$6(Lxlgridview/PullToRefreshLayout;F)V

    goto/16 :goto_1
.end method
